package com.dragon.english_practice_back.service;


import com.dragon.english_practice_back.entity.Role;
import com.dragon.english_practice_back.entity.User;
import com.dragon.english_practice_back.reponse.Result;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface LoginService {
    Result login(User user);
    Result logout();

    boolean existEmail(String email);

    List<Role> role();

    Result register(User user);
}
